import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(
        import.meta.env.BASE_URL),
    routes: [{
            path: '/login',
            name: 'login',
            meta: { title: '登录' },
            component: () =>
                import ('@/views/login/index.vue'),
        },
        {
            path: '/',
            name: 'app',
            redirect: '/fault',
            component: () =>
                import ('@/layout/index.vue'),
        },
    ]
})

export default router